<!DOCTYPE html> 
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
    contentType="text/html;charset=utf-8"%>
<html>
<head>
<title>资源管理-资源详情</title>
<jsp:include page="/common/head.jsp"></jsp:include>
<link href="<%=request.getContextPath()%>/static/plugin/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet">
<script src="<%=request.getContextPath()%>/static/plugin/zTree/js/jquery.ztree.all-3.5.min.js"></script>
</head>
<body class="iframe-page">
<div class="page-title-wrapper">
    <div class="page-title">
        <div class="page-title-text">
            <span>资源管理</span>
            <span class="split"></span>
            <span>资源详情</span>
        </div>
        <a id="goBack" class="btn-return distance-left" href="javascript:;"><i class="icon icon-arrow-left"></i>返回上级</a>
    </div>
    <div class="page-title-border"></div>
</div>

<form id="resourceForm">
<table class="table-view" style="margin-top: 15px;">
    <tr>
        <td class="td-title">上级节点</td>
        <td><span name="parentName"></span></td>
    </tr>
    <tr>
        <td class="td-title">资源名称</td>
        <td><span name="name"></span></td>
    </tr>
    <tr>
        <td class="td-title">资源简称</td>
        <td><span name="sName"></span></td>
    </tr>
    <tr>
        <td class="td-title">资源类别</td>
        <td><span name="type" id="type"></span></td>
    </tr>
    <tr>
        <td class="td-title">URL</td>
        <td><span name="url"></span></td>
    </tr>
    <tr>
        <td class="td-title">权限标识</td>
        <td><span name="permit"></span></td>
    </tr>
    <tr>
        <td class="td-title">功能标识</td>
        <td><span name="mark"></span></td>
    </tr>
    <tr>
        <td class="td-title">排序号</td>
        <td><span name="orderNo"></span></td>
    </tr>
    <tr>
        <td class="td-title">创建时间</td>
        <td><span name="createTime" id="createTime"></span></td>
    </tr>
    <tr>
        <td class="td-title">上次修改时间</td>
        <td><span name="updateTime" id="updateTime"></span></td>
    </tr>
</table>
</form>
     
     <script>    
        var RESOURCE_URL = {
             INIT_STAT: basePath + '/sys/resource/initStat'
         };
        $(function() {
        	var data = ${r};
        	$("#resourceForm").form().form("loadDataView",{
        		data : data
        	}); 
        	// 返回按钮事件
            $('#goBack').on('click',goBack);
        });
        
        // 返回
        function goBack() {
            window.location.href=RESOURCE_URL.INIT_STAT;
        }
        
     </script>
</body>
</html>
